<div ng-controller="EditPostCtrl">
    <form class="form-horizontal">
        <h1 class="page-header">Edit Post({{post.id}}, created at {{post.created|date:'short'}})</h1>
        <fieldset>
            <div class="control-group">
                <label class="control-label" for="title">Title</label>
                <div class="controls">
                    <input id="title" type="text" class="input-block-level"
                           required="true" ng-model="post.title"></input>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="body">Body</label>
                <div class="controls">
                    <textarea id="body" class="input-block-level" rows="10"
                              ng-model="post.body" required="true"></textarea>
                </div>
            </div>
        </fieldset>
        <div class="form-actions">			
            <button ng-click="updatePost()" class="btn btn-primary">Update Post</button>
        </div>
    </form>
</div>